<template>
    <div id="swiper">

        <!-- 轮播 -->
        <van-swipe :autoplay="3000">
            <van-swipe-item v-for="(image, index) in images" :key="index">
                <img v-lazy="image" />
            </van-swipe-item>
        </van-swipe>
        
    </div>
</template>

<script>
import Vue from 'vue';
import { Lazyload } from 'vant';
Vue.use(Lazyload);

export default {
    data() {
        return {
            // 轮播图
            images: [
                'img/1.png',
                'img/2.jpg',
                'img/3.jpg',
            ],
        }
    },
}
</script>

<style lang="scss"> 
#swiper{
    width:100%;
    height:100%;
    img{
        width:100%;
    }
}
</style>